<template>
  <div>
    <el-container>
      <el-aside width="240px"><Aside></Aside></el-aside>
      <el-container>
        <el-header><Header></Header></el-header>
        <el-main>
          <!-- 用来加载配置的子路由的组件 -->
          <router-view></router-view
        ></el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Aside from "@/components/Aside.vue";
import Header from "@/components/Header.vue";
export default {
  name: "Home",
  components: {
    Aside,
    Header,
  },
};
</script>
<style scoped>
.el-header {
  background-color: #fff;
  line-height: 60px;
  border-bottom: 2px solid #f0f0f0;
}

.el-aside {
  background-color: #3f4c6b;
  color: #333;
  text-align: center;
  line-height: 200px;
  height: 100vh;
}

.el-main {
  background-color: #fff;
}
</style>